import request from '@/utils/request'

// 查询用户健康信息列表
export function listUserHealthInfo(query) {
  return request({
    url: '/geek/userHealthInfo/list',
    method: 'get',
    params: query
  })
}

// 查询用户健康信息详情
export function getUserHealthInfo(healthId) {
  return request({
    url: '/geek/userHealthInfo/' + healthId,
    method: 'get'
  })
}

// 新增用户健康信息
export function addUserHealthInfo(data) {
  return request({
    url: '/geek/userHealthInfo',
    method: 'post',
    data: data
  })
}

// 修改用户健康信息
export function updateUserHealthInfo(data) {
  return request({
    url: '/geek/userHealthInfo',
    method: 'put',
    data: data
  })
}

// 删除用户健康信息
export function delUserHealthInfo(healthId) {
  return request({
    url: '/geek/userHealthInfo/' + healthId,
    method: 'delete'
  })
}

// 导出用户健康信息
export function exportUserHealthInfo(query) {
  return request({
    url: '/geek/userHealthInfo/export',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
} 